import request from '@/utils/request'

// 查询售后登记信息列表
export function listSaleRegister(query) {
  return request({
    url: '/saleManagement/saleRegister/list',
    method: 'get',
    params: query
  })
}

// 查询售后登记信息详细
export function getSaleRegister(registerId) {
  return request({
    url: '/saleManagement/saleRegister/' + registerId,
    method: 'get'
  })
}

// 新增售后登记信息
export function addSaleRegister(data) {
  return request({
    url: '/saleManagement/saleRegister',
    method: 'post',
    data: data
  })
}

// 修改售后登记信息
export function updateSaleRegister(data) {
  return request({
    url: '/saleManagement/saleRegister',
    method: 'put',
    data: data
  })
}

// 删除售后登记信息
export function delSaleRegister(registerId) {
  return request({
    url: '/saleManagement/saleRegister/' + registerId,
    method: 'delete'
  })
}
